var status = -1;
var selectionLog = [];

function start(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            var e = qm.getQuest();
            qm.askYesNo("这个任务的开始脚本还没有修复哦。它的脚本位于： #b 脚本/任务/32733.js#k\r\n\r\n如果你有兴趣，欢迎一起来修复！\r\n\r\n那么现在，你要立刻开始这个任务吗？")
        } else {
            if (status == a++) {
                qm.forceStartQuest();
                qm.dispose()
            }
        }
    }
}

function end(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.sendNormalTalk_Bottom("这里有黑乎乎的脏东西。那就让我来打扫打扫吧？", 57, 1530546, false, true)
        } else {
            if (status === a++) {
                qm.curNodeEventEnd(true);
                qm.setInGameDirectionMode(true, false, true);
                qm.inGameDirectionEvent_ForcedFlip10(1, 78);
                qm.inGameDirectionEvent_AskAnswerTime(1000)
            } else {
                if (status === a++) {
                    qm.inGameDirectionEvent_ForcedFlip(1);
                    qm.inGameDirectionEvent_AskAnswerTime(1000)
                } else {
                    if (status === a++) {
                        qm.npc_ChangeController(1530270, "oid=20701737", 1100, -1248, 39, 1050, 1150, 1, true, false);
                        qm.npc_SetSpecialAction("oid=20701737", "summon", 0, 0);
                        qm.npc_ChangeController(1530280, "oid=20701738", 750, -1248, 38, 700, 800, 0, true, false);
                        qm.npc_SetSpecialAction("oid=20701738", "summon", 0, 0);
                        qm.sendNormalTalk_Bottom("放在那儿吧！我们来打扫就行了！", 37, 1530270, false, true)
                    } else {
                        if (status === a++) {
                            qm.sendNormalTalk_Bottom("不用……还是我来吧。", 57, 1530546, true, true);
                            qm.effect_NormalSpeechBalloon("?", 1, 0, 1, 1500, 0, qm.getPlayer().getId())
                        } else {
                            if (status === a++) {
                                qm.sendNormalTalk_Bottom("别担心！就不必你亲自动手了！", 37, 1530270, true, true)
                            } else {
                                if (status === a++) {
                                    qm.npc_SetForceMove("oid=20701737", -1, 50, 100);
                                    qm.npc_SetForceMove("oid=20701738", 1, 100, 100);
                                    qm.inGameDirectionEvent_AskAnswerTime(2500)
                                } else {
                                    if (status === a++) {
                                        qm.npc_SetSpecialAction("oid=20701737", "cleaning", -1, 1);
                                        qm.npc_SetSpecialAction("oid=20701738", "cleaning", -1, 1);
                                        qm.inGameDirectionEvent_AskAnswerTime(2000)
                                    } else {
                                        if (status === a++) {
                                            qm.setNpcSpecialActionReset("oid=20701737");
                                            qm.setNpcSpecialActionReset("oid=20701738");
                                            qm.sendNormalTalk_Bottom("请记住我们的样子吧！以后只要别欺负我们就行啦！", 37, 1530270, false, true)
                                        } else {
                                            if (status === a++) {
                                                qm.npc_LeaveField("oid=20701737");
                                                qm.npc_LeaveField("oid=20701737");
                                                qm.npc_LeaveField("oid=20701738");
                                                qm.npc_LeaveField("oid=20701738");
                                                qm.inGameDirectionEvent_AskAnswerTime(1000)
                                            } else {
                                                if (status === a++) {
                                                    qm.sendNormalTalk_Bottom("……？什么，这帮家伙。", 57, 1530546, false, true)
                                                } else {
                                                    if (status === a++) {
                                                        qm.inGameDirectionEvent_ForcedFlip(0);
                                                        qm.setInGameDirectionMode(false, true, false);
                                                        qm.gainExp(Math.pow(qm.getLevel(), 3));
                                                        qm.forceCompleteQuest(32733);
                                                        qm.setNumberForQuestInfo(32759, "3f", 1);
                                                        qm.npc_LeaveField("oid=28319");
                                                        qm.npc_LeaveField("oid=28320");
                                                        qm.dispose()
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
};